@extends("base")

@section("body")
    <div class="col-sm-12 well-sm">
        <div class="col-sm-7 well-sm col-sm-offset-1">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="col-sm-12 well-sm">
                        <h1>所有文章</h1>
                        @foreach($articleData as $data)
                            <div class="col-sm-12">
                                <div class="panel panel-default">
                                    <div class="panel-body">
                                        <div class="col-sm-8">
                                            <h4><a href="#" style="text-decoration: none">{{$data->article_name}}</a> </h4><small> {{$data->article_create_time}} |<span class="glyphicon glyphicon-align-left" aria-hidden="true"></span>{{$data->user_nickname}} | <span class="glyphicon glyphicon-comment" aria-hidden="true"></span>{{$data->article_click}}</small><br>
                                            {{$data->article_point}}
                                        </div>
                                    </div>
                                </div>
                            </div>
                        @endforeach
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-4 well-sm">
            <div class="col-sm-10">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <h1>板块</h1>
                        <table class="table table-hover">
                            @foreach($articleClassData as $data)
                                <tr>
                                    <td>
                                        <h4><a href="#" style="text-decoration: none">{{$data->article_class_name}}</a></h4>
                                    </td>
                                </tr>
                            @endforeach
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-4 well-sm">
            <div class="col-sm-10">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <h1>推荐文章</h1>
                        <table class="table table-hover">
                            @foreach($articleArticleData as $data)
                                <tr>
                                    <td>
                                        <h4><a href="#" style="text-decoration: none">{{$data->article_name}}</a></h4>
                                    </td>
                                </tr>
                            @endforeach
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
@stop
